const getDefaultState = () => {
    return {
        name: ''
    }
}


const state = getDefaultState()

const mutations = {
    SET_NAME: (state, name) => {
        state.name = name
    }
}

const actions = {
    login({ commit }, name) {
        commit('SET_NAME', name)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions,
}